package com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess;

public class LoginProcessProxy implements com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.LoginProcess {
  private String _endpoint = null;
  private com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.LoginProcess loginProcess = null;
  
  public LoginProcessProxy() {
    _initLoginProcessProxy();
  }
  
  public LoginProcessProxy(String endpoint) {
    _endpoint = endpoint;
    _initLoginProcessProxy();
  }
  
  private void _initLoginProcessProxy() {
    try {
      loginProcess = (new com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.Loginprocess_client_epLocator()).getLoginProcess_pt();
      if (loginProcess != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)loginProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)loginProcess)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (loginProcess != null)
      ((javax.xml.rpc.Stub)loginProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.LoginProcess getLoginProcess() {
    if (loginProcess == null)
      _initLoginProcessProxy();
    return loginProcess;
  }
  
  public com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.ProcessResponse login(com.oracle.xmlns.StMatthews.LoginProcess.LoginProcess.Process payload) throws java.rmi.RemoteException{
    if (loginProcess == null)
      _initLoginProcessProxy();
    return loginProcess.login(payload);
  }
  
  
}